package com.thh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Desc  启动类
 * @Author tanhh
 * @Date 2022/6/19 22:02
 * @Version 1.0
 **/
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@EnableAsync
public class TmdAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(TmdAdminApplication.class, args);
        System.out.println("系统启动成功！");
        //启动打开默认浏览器访问（添加以下代码）
        try {
            Runtime.getRuntime().exec("cmd /c start http://localhost:8888" );
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
